import Vue from 'vue'
import App from './App'
import VueLazyload from 'vue-lazyload';
Vue.use(VueLazyload);
import hljs from 'highlight.js' //导入代码高亮文件
import 'highlight.js/styles/monokai-sublime.css'  //导入代码高亮样式
Vue.directive('highlight',function (el) {
  let highlight = el.querySelectorAll('pre code');
  highlight.forEach((block)=>{
    hljs.highlightBlock(block)
  })
})
import vuetimeline from "@growthbunker/vuetimeline";

Vue.use(vuetimeline)
Vue.config.productionTip = false;
// Vue.prototype.$host = 'https://unidemo.dcloud.net.cn/';
Vue.prototype.$host = 'http://index.musclewiki.cn/api';
App.mpType = 'app'

const app = new Vue({
  ...App
})
app.$mount()
